package subject_set.weekly_competition.day10_16;

/**
 * @author haomin
 * @date 2022/10/16 10:30
 **/
public class Num3 {
    class Solution {
        public boolean sumOfNumberAndReverse(int num) {
            for(int i = num/2; i <= num; ++i){
                int b = Integer.parseInt(new StringBuffer(Integer.toString(i)).reverse().toString());
                if((i + b) == num) return true;
            }
            return false;
        }
    }
}